# Contributor: Matthew T Hoare <matthew.t.hoare@gmail.com>
# Maintainer: Matthew T Hoare <matthew.t.hoare@gmail.com>
pkgname=oksh
pkgver=7.4
pkgrel=0
pkgdesc="Portable OpenBSD ksh, based on the Public Domain KornShell (pdksh)"
url="https://github.com/ibara/oksh"
arch="all"
license="Public-Domain"
options="!check" # no checks
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="https://github.com/ibara/oksh/releases/download/oksh-$pkgver/oksh-$pkgver.tar.gz"

build() {
	./configure \
		--bindir=/bin \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
e23d30a455744219c689533b750094be099842b37e3c2d42e02af6683641d1695efc15e2804738fea768208ca4f4b88bba1c11cb0167d66d8f31609d0b42cb2e  oksh-7.4.tar.gz
"
